package com.huawei.zyb.taskManager.application.developer.dto;

import com.huawei.zyb.taskManager.domain.developer.valueobject.DeveloperRole;
import com.huawei.zyb.taskManager.domain.developer.valueobject.DeveloperStatus;

import java.time.LocalDateTime;

/**
 * 开发者数据传输对象
 */
public class DeveloperDTO {
    
    private String id;
    private String name;
    private DeveloperRole role;
    private DeveloperStatus status;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    
    public DeveloperDTO() {
    }
    
    public DeveloperDTO(String id, String name, DeveloperRole role,
                       DeveloperStatus status,
                       LocalDateTime createdAt, LocalDateTime updatedAt) {
        this.id = id;
        this.name = name;
        this.role = role;
        this.status = status;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
    }
    
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    

    
    public DeveloperRole getRole() {
        return role;
    }
    
    public void setRole(DeveloperRole role) {
        this.role = role;
    }
    
    public DeveloperStatus getStatus() {
        return status;
    }
    
    public void setStatus(DeveloperStatus status) {
        this.status = status;
    }
    

    
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }
    
    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
    
    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }
    
    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
    
    @Override
    public String toString() {
        return "DeveloperDTO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", role=" + role +
                ", status=" + status +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }
}